cmake_minimum_required(VERSION 3.20)
project(SnMedia)
set(CMAKE_CXX_STANDARD 17)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

set(INC_DIR 
    ${PROJECT_SOURCE_DIR}/../third_party/ffmpeg/build/include 
    ${PROJECT_SOURCE_DIR}/src
    )
    
set(LIB_DIR ${PROJECT_SOURCE_DIR}/../third_party/ffmpeg/build/lib)

set(TARGET mediaTest)

add_executable(${TARGET} "")

target_sources(${TARGET} PUBLIC 
    src/main.cpp
)

target_include_directories(${TARGET} PUBLIC ${INC_DIR})
target_link_directories(${TARGET} PUBLIC ${LIB_DIR})
target_link_libraries(${TARGET}
    avcodec
    avformat
    avutil
    swresample
    swscale
)
